﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using plas.cps.api.entity;
using plas.core;
using plas.core.entity;
//更新中…………
namespace plas.cps.api.services
{
    interface ICustomerServices : IBaseService<CustomerEntity>
    {
        /// <summary>
        /// 修改/保存
        /// </summary>
        /// <param name="customers">顾客数组</param>
        /// 
        void Save(params CustomerEntity[] customers);


        /// <summary>
        /// 删除顾客信息
        /// </summary>
        /// <param name="pk">顾客主键数组</param>
        void Delete(params string[] pks);

        /// <summary>
        /// 通过id查询
        /// </summary>
        /// <param name="pk">顾客主键</param>
        CustomerEntity QueryCustomerById(string pk);
        /// <summary>
        /// 多条件查询
        /// </summary>
        /// <param name="pageNum">当前页</param>
        /// <param name="pageSize">每页记录数</param>
        /// <param name="goods">顾客实体</param>
        /// <param name="orderBy">键值对, 可以不赋值，参见实例 </param>
        /// <returns></returns>
        QueryResult<CustomerEntity> QueryList(int pageNum, int pageSize, CustomerEntity goods, Dictionary<string, string> orderBy);
      
             
    }
}
